package com.example.recruitment_website.repository;

import com.example.recruitment_website.domain.Record;
import com.example.recruitment_website.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserRepository extends JpaRepository<User,Integer> {

    @Query(value = "select * from user a where a.open_id = ?1",nativeQuery = true)
    User findByOpen_id(String openId);
}
